* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-size: 14px;
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,
                 Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
    min-width: 1240px;
    background-color: #e7e5eb;
    line-height: 1.5;
}
a {
    text-decoration: none; /* 移除链接下划线 */
}
header {
    width: 100%;
    height: 4em;
    background: #033e70;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 999;
}
.headerbar {
    display: flex;
    height: 100%;
    align-items: center;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}
header a {
    color: #ffffff; /* 设置链接文字颜色 */
}
header .name {
    color: skyblue;
    display: flex; /* 使Logo和文本在flex容器内 */
    align-items: center; /* 垂直居中 */
    margin-right: 40px; /* 和其他导航项的间距 */
    font-weight: bold;
}
header .name::before {
    content: "";
    display: inline-block;
    width: 50px;
    height: 50px;
    margin-right: 10px; /* Logo和文本之间的间距 */
    background-image: url('../images/Logo.png');
    background-size: cover;
    border-radius: 50%;
    background-color: skyblue;
}
header span {
    color: #dddddd;
}
header ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-grow: 1;
}
header li {
    padding-right: 20px;
}
header hr {
    margin-right: 20px;
}
header .submenu {
    padding-top: 4px;
}
.main-container {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 10em);
    padding-top: 2px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background-color: #cccccc;
}
.leftSide {
    flex: 0 0 150px;
    background: #eeeeee;
    min-width: 12rem;
}
.description {
    text-align: center;
    background-color: skyblue;
    line-height: 3em;
    height: 3em;
    border-bottom: 4px solid darkgoldenrod;
    margin-bottom: 6px;
}
.categories ul {
    list-style-type: none;
    margin-left: 0;
}
.categories li {
    position: relative;
    padding-left: 1em;
    border-bottom: 1px solid #033e70;
    height: 2em;
    line-height: 2em;
}
.categories li:hover {
    background-color: #eee2c5;
}
.categories a {
    color: black;
    font-weight: 500;
    height: 100%;
    width: 100%;
    display: inline-block;
}
.categories a::after {
    content: attr(postcount);
    border-radius: 4px;
    position: absolute;
    right: 0;
    bottom: 2px;
    width: 16px;
    background-color: whitesmoke;
    height: 1.2em;
    line-height: 1.2em;
    border: 1px dotted #033e70;
    margin-right: 4px;
    text-align: right;
}
.work-area {
    flex-grow: 1;
    background: #ffffff;
    padding: 10px;
    overflow: auto;
    position: relative;
}
footer {
    height: 6em;
    background-color: #222;
}